package com.freeter.modules.AdvConfigure.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;



/**
 * 
 * 数据库通用操作实体类（普通增删改查）
 * @author xuchen
 * @email 171998110@qq.com
 * @date 2019-09-05 15:25:27
 */
@TableName("configure")
@ApiModel(value = "Configure")
public class ConfigureEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public ConfigureEntity() {
		
	}
	
	public ConfigureEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	/**
	 * 主键id
	 */
	
	@TableId 					
	@ApiModelProperty(value = "主键id",hidden = true)
	private Integer id;
	
	/**
	 * 图片url
	 */
						
	@ApiModelProperty(value = "图片url")
	private String picUrl;
	
	/**
	 * 分类id
	 */
						
	@ApiModelProperty(value = "分类id")
	private Integer cateId;
	
	/**
	 * 商品id
	 */
						
	@ApiModelProperty(value = "商品id")
	private Integer productId;
	
	/**
	 * 店铺id
	 */
						
	@ApiModelProperty(value = "店铺id")
	private Integer storeId;
	
	/**
	 * 广告url 
	 */
						
	@ApiModelProperty(value = "广告url ")
	private String advUrl;
	
	/**
	 * 广告位编码
	 */
						
	@ApiModelProperty(value = "广告位编码")
	private String dicCode;
	
	/**
	 * 是否删除 0->不删除。1->删除
	 */
						
	@ApiModelProperty(value = "是否删除 0->不删除。1->删除")
	private Boolean del;
	
	/**
	 * 广告名称
	 */
						
	@ApiModelProperty(value = "广告名称")
	private String name;
	
	/**
	 * 广告位id
	 */
						
	@ApiModelProperty(value = "广告位id")
	private Integer advPositionId;
	
	/**
	 * 排序
	 */
						
	@ApiModelProperty(value = "排序")
	private Integer sort;
	
	/**
	 * 0->pc段，1->移动端
	 */
						
	@ApiModelProperty(value = "0->pc段，1->移动端")
	private Integer platformApply;
	
	/**
	 * 设置：主键id
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：主键id
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：图片url
	 */
	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}
	/**
	 * 获取：图片url
	 */
	public String getPicUrl() {
		return picUrl;
	}
	/**
	 * 设置：分类id
	 */
	public void setCateId(Integer cateId) {
		this.cateId = cateId;
	}
	/**
	 * 获取：分类id
	 */
	public Integer getCateId() {
		return cateId;
	}
	/**
	 * 设置：商品id
	 */
	public void setProductId(Integer productId) {
		this.productId = productId;
	}
	/**
	 * 获取：商品id
	 */
	public Integer getProductId() {
		return productId;
	}
	/**
	 * 设置：店铺id
	 */
	public void setStoreId(Integer storeId) {
		this.storeId = storeId;
	}
	/**
	 * 获取：店铺id
	 */
	public Integer getStoreId() {
		return storeId;
	}
	/**
	 * 设置：广告url 
	 */
	public void setAdvUrl(String advUrl) {
		this.advUrl = advUrl;
	}
	/**
	 * 获取：广告url 
	 */
	public String getAdvUrl() {
		return advUrl;
	}
	/**
	 * 设置：广告位编码
	 */
	public void setDicCode(String dicCode) {
		this.dicCode = dicCode;
	}
	/**
	 * 获取：广告位编码
	 */
	public String getDicCode() {
		return dicCode;
	}
	/**
	 * 设置：是否删除 0->不删除。1->删除
	 */
	public void setDel(Boolean del) {
		this.del = del;
	}
	/**
	 * 获取：是否删除 0->不删除。1->删除
	 */
	public Boolean getDel() {
		return del;
	}
	/**
	 * 设置：广告名称
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：广告名称
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：广告位id
	 */
	public void setAdvPositionId(Integer advPositionId) {
		this.advPositionId = advPositionId;
	}
	/**
	 * 获取：广告位id
	 */
	public Integer getAdvPositionId() {
		return advPositionId;
	}
	/**
	 * 设置：排序
	 */
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	/**
	 * 获取：排序
	 */
	public Integer getSort() {
		return sort;
	}
	/**
	 * 设置：0->pc段，1->移动端
	 */
	public void setPlatformApply(Integer platformApply) {
		this.platformApply = platformApply;
	}
	/**
	 * 获取：0->pc段，1->移动端
	 */
	public Integer getPlatformApply() {
		return platformApply;
	}
}
